home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 Super Collection / Windows 95 Super Collection.iso / win95 / network / netuser / netuser.txt < prev   
Encoding:
Text File  |  1995-08-30  |  1.4 KB  |  40 lines

  1. NETUSER.BAS - Obtain the login name of the person using the system.
  2. Written by     
  3.     Chad Hegerty 
  4.         Compuserve:    71212,1045
  5.         MSN:        HegertyC
  6.  
  7. This program is Freeware/Donationware. If you find this program useful and use it in your applicaiton, please consider how much time, effort and money you have saved by acquiring this file and send a check for $10.00 to:
  8.  
  9.     Chad Hegerty
  10.     P.O. Box 844
  11.     Worthington, OH  43085
  12.  
  13. If I get a good enough response from people, I will update the file for use with VB 4.0 and Access 7.0 when they become available.
  14.  
  15. Please feel free to redistribute these files in their entirety. 
  16.  
  17. No guarantees are made as to its suitability or usefulness.
  18.  
  19. This module was written for Visual Basic/Access Basic. Modification may be necessary
  20. for other environments.
  21.  
  22. Below is the declaration and function call needed to obtain the userID.
  23.  
  24.     dim strUserID as string
  25.  
  26.     strUserID = NetworkUserID()
  27.  
  28. If the user is not signed in or the ID cannot be obtained, then the
  29. string "UnknownUser" is returned.
  30.  
  31. This module requires the CALL32.DLL file to function correctly under Windows 95 or
  32. Windows NT. This file needs to be installed in the users SYSTEM directory where they have Windows installed.
  33.  
  34. The CALL32.DLL module, along with its text file, should be included with this file.
  35.  
  36. If you have any questions/suggestions, please feel free to drop my an E-Mail
  37.  
  38. Chad Hegerty
  39. 71212,1045
  40.